  <template>
  <div class="content">
    <div class="leftBox">
      <Earth />
    </div>
    <div class="rightBox">
      <div class="topBox">
        <Echart1 ref="render" />
      </div>
      <div class="centerBox">
        <Table :tableData="this.tableData" />
      </div>
      <div class="bottomBox">
        <Echart2 />
      </div>
    </div>
  </div>
</template>

  <script>
import Table from "./table.vue";
import Earth from "./earth.vue";
import Echart1 from "./echart1.vue";
import Echart2 from "./echart2.vue";
export default {
  components: { Earth, Echart1, Echart2, Table },
  data() {
    return {
      echartData: {
        x: ["白云区", "增城区", "天河区", "珠海区"],
        A: [1, 2, 3, 4],
        B: [10, 20, 33, 40],
        C: [4, 3, 2, 1],
      },
      tableData: [
        {
          tm: "2023-11-09",
          addrss: "白云区",
          real: 5,
          earlyWarning: 10,
        },
        {
          tm: "2023-11-09",
          addrss: "白云区",
          real: 5,
          earlyWarning: 10,
        },
        {
          tm: "2023-11-09",
          addrss: "白云区",
          real: 5,
          earlyWarning: 10,
        },
        {
          tm: "2023-11-09",
          addrss: "白云区",
          real: 5,
          earlyWarning: 10,
        },
        {
          tm: "2023-11-09",
          addrss: "增城区",
          real: 5,
          earlyWarning: 10,
        },
        {
          tm: "2023-11-09",
          addrss: "天河区",
          real: 5,
          earlyWarning: 10,
        },
        {
          tm: "2023-11-09",
          addrss: "珠海区",
          real: 5,
          earlyWarning: 10,
        },
      ],
    };
  },

  mounted() {
    this.$refs.render.init(this.echartData);
  },

  methods: {},
};
</script>

  <style lang="scss" scoped>
.content {
  width: 100%;
  height: calc(100vh - 85px);
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  .leftBox {
    width: 65%;
    height: 100%;
    // border: 1px solid red;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  }
  .rightBox {
    width: 34%;
    height: 100%;
    // border: 1px solid green;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .topBox {
      width: 100%;
      height: 33%;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
      // border: 1px solid green;
    }
    .centerBox {
      width: 100%;
      height: 33%;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
      // border: 1px solid green;
    }
    .bottomBox {
      width: 100%;
      height: 33%;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
      // border: 1px solid green;
    }
  }
}
</style>